<fieldset style="position:relative" id="addteam-{$link_shakebox_index}">
    <legend class="team_legend">{#PLIGG_Visual_Add_Link_To_Team_Task#}</legend>
    
        <div style="font-weight:bold;margin-bottom:-10px">{#PLIGG_Visual_Link_Task_Instruct#}</div><br />
        
        {section name=task loop=$task_ids}
        
        {if $team_ids[task] neq $last_team}
        {assign var=last_team value=$team_ids[task]}
        <div style="font-weight:bold;text-decoration:underline;margin-top:5px">{$team_names[task]}</div>                
        {/if}
        
        {section name=tasklink loop=$tasklink_task_id} 
        {if $tasklink_task_id[tasklink] eq $task_ids[task] AND $tasklink_link_id[tasklink] eq $link_id AND $tasklink_team_id[tasklink] eq $team_ids[task]}
        {assign var=tasklink_exist value=$task_ids[task]}
        {/if}  
        {/section} 
        
                      
                <div style="float:left">
                {if $tasklink_exist neq $task_ids[task]}
                <a herf="javavscript://"  style="color:#4a4a4a" 
                onclick="tasklink_save('tasklink-{$task_ids[task]}-{$team_ids[task]}-{$link_id}',{$link_id},{$task_ids[task]},{$team_ids[task]},'&nbsp;<img src=\'{$my_pligg_base}/templates/{$the_template}/images/load2.gif\'  style=\'width:16px;height:16px\' />')">
                {$task_names[task]}
                </a> 
                {else}
                <span style="color:#858585">{$task_names[task]}</span>                
                {/if}
                </div><div id="tasklink-{$task_ids[task]}-{$team_ids[task]}-{$link_id}" style="float:left;margin-left:5px;display:none"></div>
                 {if $tasklink_exist eq $task_ids[task]}             
                 <div style="float:left;color:#dbdbdb;font-weight:bold;margin-left:5px;">({#PLIGG_Team_Tasklink_Already_Added#})</div>
                 {/if}
                
   
                <br clear="all">
                                  
                                    
        
      
        
        {/section}
        
</fieldset>
            